﻿using System;
using System.Collections.Generic;
using System.Text;

namespace WinFormsApp1
{
    class Computor
    {
        public string FistName { get; set; }

        public int ShowFist()
        {
            int result;
            result = new Random().Next(1, 4);
            switch (result)
            {
                case 1:
                    FistName = "石头";
                    break;
                case 2:
                    FistName = "剪刀";
                    break;
                case 3:
                    FistName = "布";
                    break;
            }
            return result;
        }
    }
}
